<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>舞动健康</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
            color: #333;
            background-color: #f8f8f8;
            font-size: 14px;
            line-height: 1.5;
            max-width: 750px;
            margin: 0 auto;
        }
        
        .container {
            padding-bottom: 50px;
            min-height: 100vh;
        }
        
        .header {
            background-color: #41b883;
            color: #fff;
            padding: 10px 15px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            max-width: 750px;
            margin: 0 auto;
        }
        
        .header-title {
            text-align: center;
            font-size: 18px;
            line-height: 44px;
            font-weight: 500;
        }
        
        .content {
            margin-top: 64px;
            padding-bottom: 60px;
        }
        
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #fff;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-around;
            padding: 5px 0;
            max-width: 750px;
            margin: 0 auto;
        }
        
        .tab-item {
            flex: 1;
            text-align: center;
            color: #999;
            font-size: 12px;
            padding: 5px 0;
            text-decoration: none;
        }
        
        .tab-item.active {
            color: #41b883;
        }
        
        .tab-icon {
            width: 24px;
            height: 24px;
            margin: 0 auto 3px;
            display: block;
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
        }
        
        .tab-icon.home {
            background-image: url('');
        }
        
        .tab-icon.home.active {
            background-image: url('');
        }
        
        .tab-icon.coach {
            background-image: url('');
        }
        
        .tab-icon.coach.active {
            background-image: url('');
        }
        
        .tab-icon.service {
            background-image: url('');
        }
        
        .tab-icon.service.active {
            background-image: url('');
        }
        
        .tab-icon.mine {
            background-image: url('');
        }
        
        .tab-icon.mine.active {
            background-image: url('');
        }

        /* 通用样式 */
        .banner {
            width: 100%;
            height: 150px;
            overflow: hidden;
        }
        
        .banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .section {
            margin: 15px 0;
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        .section-title {
            padding: 15px;
            font-size: 16px;
            font-weight: bold;
            border-bottom: 1px solid #f1f1f1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .section-more {
            font-size: 12px;
            color: #999;
            font-weight: normal;
        }
        
        .section-content {
            padding: 15px;
        }
        
        .card {
            background: #fff;
            border-radius: 8px;
            margin-bottom: 10px;
            padding: 15px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        .btn {
            display: inline-block;
            padding: 8px 16px;
            background-color: #41b883;
            color: #fff;
            border-radius: 20px;
            border: none;
            font-size: 14px;
            text-align: center;
            cursor: pointer;
            text-decoration: none;
        }
        
        .btn-block {
            display: block;
            width: 100%;
        }
    </style>
    <!-- 页面特定的样式将在这里插入 -->
    <style id="page-style"></style>
</head>
<body>
    <!-- 页面内容将在这里插入 -->
    <div id="page-content"></div>
    
    <!-- 导航栏 -->
    <div class="footer">
        <a href="index.html" class="tab-item">
            <div class="tab-icon home"></div>
            <div>首页</div>
        </a>
        <a href="coach.html" class="tab-item">
            <div class="tab-icon coach"></div>
            <div>教练</div>
        </a>
        <a href="service.html" class="tab-item">
            <div class="tab-icon service"></div>
            <div>服务</div>
        </a>
        <a href="my.html" class="tab-item">
            <div class="tab-icon mine"></div>
            <div>我的</div>
        </a>
    </div>
    
    <script>
        // 根据当前页面设置活动的导航项
        function setActiveTab() {
            const pageName = window.location.pathname.split('/').pop();
            const tabItems = document.querySelectorAll('.tab-item');
            const icons = document.querySelectorAll('.tab-icon');
            
            tabItems.forEach(item => item.classList.remove('active'));
            icons.forEach(icon => {
                icon.classList.remove('active');
                if (icon.classList.contains('home')) icon.classList.add('home');
                if (icon.classList.contains('coach')) icon.classList.add('coach');
                if (icon.classList.contains('service')) icon.classList.add('service');
                if (icon.classList.contains('mine')) icon.classList.add('mine');
            });
            
            if (pageName === 'index.html' || pageName === '') {
                document.querySelector('.tab-item:nth-child(1)').classList.add('active');
                document.querySelector('.tab-icon.home').classList.add('active');
            } else if (pageName === 'coach.html') {
                document.querySelector('.tab-item:nth-child(2)').classList.add('active');
                document.querySelector('.tab-icon.coach').classList.add('active');
            } else if (pageName === 'service.html') {
                document.querySelector('.tab-item:nth-child(3)').classList.add('active');
                document.querySelector('.tab-icon.service').classList.add('active');
            } else if (pageName === 'my.html') {
                document.querySelector('.tab-item:nth-child(4)').classList.add('active');
                document.querySelector('.tab-icon.mine').classList.add('active');
            }
        }
        
        // 页面加载后设置活动的导航项
        window.onload = function() {
            setActiveTab();
        };
    </script>
</body>
</html> 